@extends('layouts.admin')
@section('title') @parent 添加商品属性 @stop
@section('page_title')@parent
添加商品属性
@show
@section('breadcrumb')@parent
{{ Breadcrumbs::render('product-spec-create') }}
@show
@section('content')
<div class="row">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">添加商品属性</h3>
                
            </div><!-- /.box-header -->
            <form fole="form" method="post" action="{{ route('admin.product_spec.add') }}">
            <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
            <div class="box-body">
                <div class="form-group">
                    <label for="cat_title">属性名称</label>
                    <input type="text" name="data[name]" id="cat_title" placeholder="属性名称" value="" />
                </div>
                <div class="form-group">
                    <label for="cat_sort">默认值</label>
                    <input type="text" name="data[default]" id="cat_sort" placeholder="默认值" value="" />
                </div>
                <div class="form-group">
                    <label for="cat_parent">显示方式</label>
                    <select class="form-control" name="data[type]" id="cat_parent">
                        <option value="0">无</option>
                        @foreach (range(0, 4) as $type)
                        <option value="{{ $type }}">{{ Specificant::getTypeText($type) }}</option>
                        @endforeach
                    </select>
                </div>
                
            </div><!-- /.box-body -->
            <div class="box-footer">
                <button class="btn btn-primary" type="submit">保存</button>
            </div>
            </form>
        </div><!-- /.box -->
    </div>
</div>


@stop